import './src/quasar';
import * as pcComponents from './src/components/pc';
export * from './src/components/pc';
export * as pc from './src/util/pc';
export * as app from './src/util/app';

const {
	VUE_APP_NAME:name,
	VUE_APP_VERSION:version,
	VUE_APP_AUTHOR:author
}=process.env;

function install(Vue){
	console.log(`%c作者:${author}%c${name} ${version}`,
		'background:#35495e;padding:1px 8px;color:#fff;border-radius:3px 0 0 3px;',
		'background:#027BE3;padding:1px 8px;color:#fff;border-radius:0 3px 3px 0;');
	const components=pcComponents;
	for(const component of Object.values(components)){
		Vue.component(component.name,component);
	}
}

if(typeof window!=='undefined'&&window.Vue){
	install(window.Vue);
}

export default {
	install:install,
	version:version
};
